package cn.sskxyz.security.core.property;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties("system.security")
public class SecurityProperties {
    private String loginPage = "/login.html";
    private String formAction = "/user/login";
    private String logoutAction = "/user/logout";
    private String exitPage = "/logout.html";

    private String tokenType="jwt";

    private String jwkSetUri;

    private RedisProperties redis;

    private JwtKeyPair jwtKeyPair;

    public String getLoginPage() {
        return loginPage;
    }

    public void setLoginPage(String loginPage) {
        this.loginPage = loginPage;
    }

    public String getLogoutAction() {
        return logoutAction;
    }

    public void setLogoutAction(String logoutAction) {
        this.logoutAction = logoutAction;
    }

    public String getExitPage() {
        return exitPage;
    }

    public void setExitPage(String exitPage) {
        this.exitPage = exitPage;
    }

    public String getFormAction() {
        return formAction;
    }

    public void setFormAction(String formAction) {
        this.formAction = formAction;
    }

    public RedisProperties getRedis() {
        return redis;
    }

    public void setRedis(RedisProperties redis) {
        this.redis = redis;
    }

    public String getTokenType() {
        return tokenType;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }

    public JwtKeyPair getJwtKeyPair() {
        return jwtKeyPair;
    }

    public void setJwtKeyPair(JwtKeyPair jwtKeyPair) {
        this.jwtKeyPair = jwtKeyPair;
    }

    public String getJwkSetUri() {
        return jwkSetUri;
    }

    public void setJwkSetUri(String jwkSetUri) {
        this.jwkSetUri = jwkSetUri;
    }
}
